how to find the magnitude and unit vector